Details
-
Bug
-
Resolution: Fixed
-
Blocker
-
None
-
None
-
None
-
1.5,1.6 JDK
Description
Hi,
the TimeBasedRollingPolicy uses the AsynchronousCompressor class to perform the compression in a background thread. In the AsyncCompressor every compress creates a ThreadPool with one thread which is never stopped. After compression the thread will wait on a queue to be fed with new task which will never happen again and there is now chance to stop the thread manually, because the reference to the ExecutorService is lost.
Because the thread is not stoped and it is not a deamon thread, the JVM can not shutdown. In web env this bug causes the leak of the application's classloader.
A simple solution is to create a simple thread to perform the compression instead of using an ExecutorService.
Regards,
Zoltan Szel